#include<iostream>
using namespace std;
typedef long long LL;
const int N = 1e5 + 10;
int a[N], s[N];
int n;
int main()
{
	cin >> n;
	for (int i = 1; i <= n; i++) {
		cin >> a[i];
		s[i] = s[i - 1] + a[i];
	}
	if (s[n] & 1) {
		cout << 0 << endl;
		return 0;
	}
	LL ans = 0;
	int cnt = 0;
	for (int i = 1; i < n; i++) {
		if (s[i] == s[n] - s[i])ans++;
	}
	cout << ans << endl;
	return 0;
}